Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Check for altInputFormats to be defined and an array before using it#6511

Open
gigadie wants to merge 1 commit intoangular-ui:masterfrom
gigadie:patch-1
Open

Check for altInputFormats to be defined and an array before using it#6511
gigadie wants to merge 1 commit intoangular-ui:masterfrom
gigadie:patch-1

Conversation

@gigadie
Copy link

@gigadie gigadie commented Apr 5, 2017

If the user wrongly sets a property which is undefined for the attribute alt-input-formats, this will cause an exception to be thrown when evaluating the viewValue in the method parseDateString.

"Cannot read property 'length' of undefined".

Checking for its existence and if it's an array or not prevents the exception.

If the user wrongly sets a property which is undefined for the attribute alt-input-formats, this will cause an exception to be thrown when evaluating the viewValue in the method parseDateString: "Cannot read property 'length' of undefined". Checking for its existence and if it's an array or not prevents the exception.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant